/**
* \file NetworkPlugin.cpp
* \brief NetworkPlugin decleration class for windows plugin
* \author Edouard ROGE
* \date 12 Novembre 2013
*/

#include "NetworkContext.h"
#include "NetworkPlugin.h"

NetworkPlugin::NetworkPlugin()
{
}

NetworkPlugin::~NetworkPlugin()
{
}

const std::string & NetworkPlugin::GetName() const
{
	static std::string strName = "Network Windows Plugin";
	return strName;
}

INetworkContext * NetworkPlugin::CreateContext() const
{
	return new NetworkContext();
}

void NetworkPlugin::DestroyContext(INetworkContext * _pContext) const
{
	if (_pContext)
	{
		delete (NetworkContext*)_pContext;
	}
}
